<%--
  Created by IntelliJ IDEA.
  User: LiuLong
  Date: 2020/9/12
  Time: 19:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%--常用注解--%>
    <h3>@RequestParam(name = "testname")</h3>
    <a href="anno/testRequestParam?testname=哈哈">RequestParam</a>

    <hr/>

    <h3>@RequestBody</h3>
    <form action="anno/testRequestBody" method="post">
        用户的姓名:<input type="text" name="username"/><br/>
        用户的年龄:<input type="text" name="age"/><br/>
        <input type="submit" value="提交" />
    </form>

    <hr/>

    <h3>@PathVariable</h3>
    <a href="anno/testPathVariable/10">testPathVariable</a>

    <hr/>

    <h3>@RequestHeader(value = "Accept") </h3>
    <a href="anno/testRequestHeader">RequestHeader</a>

    <hr/>

    <h3>@CookieValue(value = "JSESSIONID")</h3>
    <a href="anno/testCookieValue">testCookieValue</a>

    <hr/>

    <h3>@ModelAttribute("abc")</h3>
    <form action="anno/testModelAttribute" method="post">
        用户的姓名:<input type="text" name="uname"/><br/>
        用户的年龄:<input type="text" name="age"/><br/>
        <input type="submit" value="提交" />
    </form>

    <hr/>

    <h3></h3>
    <a href="anno/testSessionAttributes">SessionAttributes</a>

    <hr/>

    <h3></h3>
    <a href="anno/getSessionAttributes">getSessionAttributes</a>

    <hr/>

    <h3></h3>
    <a href="anno/delSessionAttributes">delSessionAttributes</a>

    <hr/>

</body>
</html>
